/*    */ package server;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class StructPetCapsule {
/*  7 */   public static String[] types = new String[] { "incPAD", "incMAD", "incDAMr", "ignoreTargetDEF", "incCr", "incMHPr", "incMMPr", "incEXPr" };
/*    */   public int name;
/*    */   public String desc;
/* 10 */   public Map<String, Integer> data = new HashMap<>();
/*    */   
/*    */   public int get(String string) {
/* 13 */     return (this.data.get(string) != null) ? ((Integer)this.data.get(string)).intValue() : 0;
/*    */   }
/*    */   
/*    */   public String toString() {
/* 17 */     StringBuilder stringBuilder = new StringBuilder();
/* 18 */     for (String string : types) {
/* 19 */       if (get(string) > 0)
/* 20 */         stringBuilder.append(this.desc.replace("#" + string, String.valueOf(get(string)))); 
/*    */     } 
/* 22 */     return stringBuilder.toString();
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\StructPetCapsule.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */